<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;
use Auth;

/**
 * 小程序
 * @package App\Http\Requests
 */
class MiniRequest extends FormRequest
{
    public function authorize()
    {
        return Auth::check();
    }

    public function rules()
    {
        return [
            'qr' => ['required']
        ];
    }

    public function attributes()
    {
        return ['qr' => '二维码'];
    }
}
